/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Giaodien;

import Lop.lDIACHI;
import Lop.lGia;
import Lop.lKHU_TDC;
import Lop.lNHOM_NEN;
import java.awt.Component;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.beans.Statement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.swing.JDesktopPane;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
import net.proteanit.sql.DbUtils;
import oracle.jdbc.OraclePreparedStatement;
import oracle.jdbc.OracleResultSet;

/**
 *
 * @author Administrator
 */
public class gNhomnen extends javax.swing.JInternalFrame {

    /**
     * Creates new form gNhomnen
     */
    public gNhomnen() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        tbNhomnen = new javax.swing.JTable();
        label1 = new java.awt.Label();
        label2 = new java.awt.Label();
        label3 = new java.awt.Label();
        txtManhomnen = new javax.swing.JTextField();
        txtTennhomnen = new javax.swing.JTextField();
        cboKhutdc = new javax.swing.JComboBox();
        btTaomoi = new javax.swing.JButton();
        btCapnhat = new javax.swing.JButton();
        btXoa = new javax.swing.JButton();
        btThoat = new javax.swing.JButton();
        btBanggia = new javax.swing.JButton();

        setTitle("Nhom nen");
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameOpened(evt);
            }
        });

        tbNhomnen.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tbNhomnen.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        tbNhomnen.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbNhomnenMouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(tbNhomnen);

        label1.setText("Mã nhóm nền");

        label2.setText("Tên nhóm nền");

        label3.setText("Khu TĐC");

        txtManhomnen.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtManhomnen.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtManhomnenActionPerformed(evt);
            }
        });

        txtTennhomnen.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N

        cboKhutdc.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        cboKhutdc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cboKhutdcActionPerformed(evt);
            }
        });

        btTaomoi.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btTaomoi.setText("Tạo mới");
        btTaomoi.setActionCommand("btTaoMoi");
        btTaomoi.setPreferredSize(new java.awt.Dimension(90, 28));
        btTaomoi.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btTaomoiMouseClicked(evt);
            }
        });

        btCapnhat.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btCapnhat.setText("Cập nhật");
        btCapnhat.setActionCommand("btCapNhat");
        btCapnhat.setPreferredSize(new java.awt.Dimension(90, 28));
        btCapnhat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btCapnhatMouseClicked(evt);
            }
        });

        btXoa.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btXoa.setText("Xóa");
        btXoa.setActionCommand("btXoa");
        btXoa.setPreferredSize(new java.awt.Dimension(90, 28));
        btXoa.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btXoaMouseClicked(evt);
            }
        });

        btThoat.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btThoat.setText("Thoát");
        btThoat.setActionCommand("btThoat");
        btThoat.setPreferredSize(new java.awt.Dimension(90, 28));
        btThoat.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btThoatMouseClicked(evt);
            }
        });

        btBanggia.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        btBanggia.setText("Bảng giá");
        btBanggia.setPreferredSize(new java.awt.Dimension(90, 28));
        btBanggia.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                btBanggiaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(5, 5, 5)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(26, 26, 26)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(txtManhomnen, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(btBanggia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addComponent(txtTennhomnen, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addComponent(btTaomoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(btCapnhat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(btXoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(18, 18, 18)
                            .addComponent(btThoat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(52, 52, 52)
                        .addComponent(cboKhutdc, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 411, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cboKhutdc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(txtManhomnen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(btBanggia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(txtTennhomnen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(40, 40, 40)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btTaomoi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btCapnhat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btXoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btThoat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        cboKhutdc.getAccessibleContext().setAccessibleName("");
        btTaomoi.getAccessibleContext().setAccessibleName("btTaoMoi");
        btCapnhat.getAccessibleContext().setAccessibleName("btCapNhat");
        btXoa.getAccessibleContext().setAccessibleName("btXoa");
        btThoat.getAccessibleContext().setAccessibleName("btThoat");

        getAccessibleContext().setAccessibleName("gNhomnen");
        getAccessibleContext().setAccessibleDescription("");

        setBounds(0, 0, 444, 390);
    }// </editor-fold>//GEN-END:initComponents

    private void txtManhomnenActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtManhomnenActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtManhomnenActionPerformed

    private lNHOM_NEN nhomnen;
    private boolean isnew;   //true is add new statement. Otherwise, update
    
    private void formInternalFrameOpened(javax.swing.event.InternalFrameEvent evt) {//GEN-FIRST:event_formInternalFrameOpened
        // TODO add your handling code here:
        try{
            setDataIntoCboKhuTDC();
            if(cboKhutdc.getItemCount() > 0) this.cboKhutdc.setSelectedIndex(0);
            this.cboKhutdc.addItemListener(new ItemChangeListener());
            this.txtManhomnen.setEnabled(false);
            this.btCapnhat.setEnabled(false);
            this.btXoa.setEnabled(false);
            this.btBanggia.setEnabled(false);
            this.isnew = false;
        }
        catch(SQLException e){
            JOptionPane.showMessageDialog(null, e);
        }
    }//GEN-LAST:event_formInternalFrameOpened

    private void setDataIntoCboKhuTDC() throws SQLException{
        OracleResultSet rs = (new lKHU_TDC()).getDsKHU_TDC(fMain.cnn);
        int rowCount = 0;
        if(rs.last()) rowCount = rs.getRow();
        
        if(rowCount > 0){
            rs.beforeFirst();
            lKHU_TDC[] khutdc = new lKHU_TDC[rowCount];
            int i = 0;
            while(rs.next()){
                khutdc[i] = new lKHU_TDC();
                khutdc[i].setMakhu(rs.getString(1));
                khutdc[i].setTenkhu(rs.getString(2));
                khutdc[i].setNgaydvsd(rs.getDate(3));
                lDIACHI dchi = new lDIACHI(rs.getString(4), rs.getString(5), rs.getString(6), rs.getString(7));
                khutdc[i].setDchi(dchi);
                i++;
            }
            this.cboKhutdc.setModel(new javax.swing.DefaultComboBoxModel(khutdc));
            this.cboKhutdc.setRenderer(new ItemRenderer());
        }
    }
    
    class ItemRenderer extends BasicComboBoxRenderer  
    {  
        public Component getListCellRendererComponent(  
            JList list, Object value, int index,  
            boolean isSelected, boolean cellHasFocus)  
        {  
            super.getListCellRendererComponent(list, value, index,  
                isSelected, cellHasFocus);  
  
            if (value != null)  
            {  
                lKHU_TDC item = (lKHU_TDC)value;  
                setText( item.getTenkhu().toUpperCase() );  
            }  
  
            if (index == -1)  
            {  
                lKHU_TDC item = (lKHU_TDC)value;  
                setText( "" + item.getTenkhu());  
            }  
            return this;  
        }  
    }  
    
    private void btThoatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btThoatMouseClicked
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_btThoatMouseClicked

    private void cboKhutdcActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cboKhutdcActionPerformed
        lKHU_TDC khutdc = (lKHU_TDC)this.cboKhutdc.getSelectedItem();
        OracleResultSet rs = khutdc.getDS_NHOMNEN(fMain.cnn);
        tbNhomnen.setModel(DbUtils.resultSetToTableModel(rs));
    }//GEN-LAST:event_cboKhutdcActionPerformed

    private void btTaomoiMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btTaomoiMouseClicked
        // TODO add your handling code here:
        this.txtManhomnen.setText("");
        this.txtTennhomnen.setText("");
        this.txtManhomnen.setEnabled(true);
        this.btCapnhat.setEnabled(true);
        this.btXoa.setEnabled(false);
        this.btTaomoi.setEnabled(false);
        this.isnew = true;
    }//GEN-LAST:event_btTaomoiMouseClicked

    private void btCapnhatMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btCapnhatMouseClicked
        try{
            // TODO add your handling code here:
            if(this.cboKhutdc.getSelectedIndex() < 0){
                JOptionPane.showMessageDialog(null, "Chua chon khu tdc!");
                return;
            }

            if(this.txtManhomnen.getText().equals("")){
                JOptionPane.showMessageDialog(null, "Ma nhom nen khong duoc rong!");
                return;
            }

            if(this.txtTennhomnen.getText().equals("")){
                JOptionPane.showMessageDialog(null, "Ten nhom nen khong duoc rong!");
                return;
            }

            if(isnew){
                //Tao moi
                nhomnen = new lNHOM_NEN(this.txtManhomnen.getText(),
                                        this.txtTennhomnen.getText(),
                                        (lKHU_TDC)this.cboKhutdc.getSelectedItem());

                if(nhomnen.insert(fMain.cnn)){
                    this.cboKhutdc.setSelectedIndex(this.cboKhutdc.getSelectedIndex());
                    this.txtManhomnen.setEnabled(false);
                    this.btCapnhat.setEnabled(false);
                    this.btXoa.setEnabled(true);
                    this.btTaomoi.setEnabled(true);
                    this.isnew = false;
                }
                else{JOptionPane.showMessageDialog(null, "Khong tao duoc doi tuong!");}
            }
            else{
                //Cap nhat
                nhomnen.setTennhom(this.txtTennhomnen.getText());
                if(nhomnen.update(fMain.cnn)){
                    this.cboKhutdc.setSelectedIndex(this.cboKhutdc.getSelectedIndex());
                    this.txtManhomnen.setEnabled(false);
                    this.btCapnhat.setEnabled(false);
                    this.btXoa.setEnabled(true);
                    this.btTaomoi.setEnabled(true);
                    this.isnew = false;
                }
                else{JOptionPane.showMessageDialog(null, "Khong the cap nhat du lieu!");}
            }
        }
        catch(SQLException | ClassNotFoundException e){
            JOptionPane.showMessageDialog(null, e);
        }
    }//GEN-LAST:event_btCapnhatMouseClicked

    private void tbNhomnenMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbNhomnenMouseClicked
        // TODO add your handling code here:
        if(this.tbNhomnen.getSelectedRow() >= 0){
            nhomnen = new lNHOM_NEN();
            nhomnen.setManhom(this.tbNhomnen.getModel().getValueAt(tbNhomnen.getSelectedRow(), 0).toString());
            nhomnen.setTennhom(this.tbNhomnen.getModel().getValueAt(tbNhomnen.getSelectedRow(), 1).toString());
            //nhomnen.setBanggia(null);
            nhomnen.setRefKhutdc((lKHU_TDC)this.cboKhutdc.getSelectedItem());
            this.txtManhomnen.setText(nhomnen.getManhom());
            this.txtTennhomnen.setText(nhomnen.getTennhom());
            this.txtManhomnen.setEnabled(false);
            this.btTaomoi.setEnabled(true);
            this.btCapnhat.setEnabled(true);
            this.btXoa.setEnabled(true);
            this.btBanggia.setEnabled(true);
            this.isnew = false;
        }
        else{
            this.txtManhomnen.setText("");
            this.txtTennhomnen.setText("");
            this.btCapnhat.setEnabled(false);
            this.btXoa.setEnabled(false);
            this.btBanggia.setEnabled(false);
        }
    }//GEN-LAST:event_tbNhomnenMouseClicked

    private void btXoaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btXoaMouseClicked
        try{
            // TODO add your handling code here:
            if(this.txtManhomnen.getText().equals("")){
                JOptionPane.showMessageDialog(null, "Chua chon nhom nen!");
                return;
            }
            if(nhomnen.delete(fMain.cnn)){
                this.cboKhutdc.setSelectedIndex(this.cboKhutdc.getSelectedIndex());
                this.txtManhomnen.setEnabled(true);
                this.btCapnhat.setEnabled(false);
                this.btXoa.setEnabled(false);
                this.btTaomoi.setEnabled(true);
                this.btBanggia.setEnabled(false);
                this.isnew = false;
                this.txtManhomnen.setText("");
                this.txtTennhomnen.setText("");
            }
            else{JOptionPane.showMessageDialog(null, "Khong the xoa du lieu!");}
        }
        catch(SQLException | ClassNotFoundException e){
            JOptionPane.showMessageDialog(null, e);
        }
    }//GEN-LAST:event_btXoaMouseClicked

    private void btBanggiaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btBanggiaMouseClicked
        // TODO add your handling code here:
        gBanggia banggia = new gBanggia(nhomnen);
        JDesktopPane desktopPane = getDesktopPane();
        desktopPane.add(banggia);
        banggia.setLocation(desktopPane.getWidth()/2 - banggia.getWidth()/2, (desktopPane.getHeight()-20)/2 - (banggia.getHeight()/2 - 20));
        banggia.setVisible(true);
        //this.dispose();
    }//GEN-LAST:event_btBanggiaMouseClicked

    class ItemChangeListener implements ItemListener{
        @Override
        public void itemStateChanged(ItemEvent event) {
            if (event.getStateChange() == ItemEvent.SELECTED) {
                lKHU_TDC khutdc = (lKHU_TDC)event.getItem();
                OracleResultSet rs = khutdc.getDS_NHOMNEN(fMain.cnn);
                tbNhomnen.setModel(DbUtils.resultSetToTableModel(rs));
                //JOptionPane.showMessageDialog(null, "Ma nhom nen khong duoc rong!");
            }
        }       
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btBanggia;
    private javax.swing.JButton btCapnhat;
    private javax.swing.JButton btTaomoi;
    private javax.swing.JButton btThoat;
    private javax.swing.JButton btXoa;
    private javax.swing.JComboBox cboKhutdc;
    private javax.swing.JScrollPane jScrollPane1;
    private java.awt.Label label1;
    private java.awt.Label label2;
    private java.awt.Label label3;
    private javax.swing.JTable tbNhomnen;
    private javax.swing.JTextField txtManhomnen;
    private javax.swing.JTextField txtTennhomnen;
    // End of variables declaration//GEN-END:variables
}
